package com.hs.mapper;

import com.hs.entity.Major;

import java.util.List;

public interface MajorMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Major record);

    int insertSelective(Major record);

    Major selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Major record);

    int updateByPrimaryKey(Major record);

    //查找专业列表
    public List<Major> queryMajorList();

    //根据名称查找id
    public int findIdByName(String name);
}